package com.gccloud.tgyfirst.service.demo.service;

import com.gccloud.tgyfirst.demo.entity.CourseEntity;

import com.gccloud.starter.common.dto.SearchDTO;
import com.gccloud.starter.core.service.ISuperService;
import com.gccloud.starter.mybatis.page.PageVO;

/**
 * @author qianxing
 * @version 1.0
 * @date 2021/5/17 14:18
 */
public interface ICourseService  extends ISuperService<CourseEntity> {

    /**
     * 分页查询
     * @param searchDTO
     * @return
     */
    PageVO<CourseEntity> getPage(SearchDTO searchDTO);

    /**
     * 添加课程
     * @param courseEntity
     */
    void add(CourseEntity courseEntity);

    /**
     * 修改课程
     * @param courseEntity
     */
    void update(CourseEntity courseEntity);

    /**
     * 删除课程
     * @param id
     */
    void deleteByCourseId(String id);

    /**
     * 获取我的课程
     * @param searchDTO
     * @return
     */
    PageVO<CourseEntity> getMyCourse(SearchDTO searchDTO);

}
